import request from '@/utils/request'

// 岗位列表
export function getJobsLists(query) {
    return request({
        url: '/joining/busin.Position/getJobsListsAll',
        method: 'post',
        params: query
    })
}
// 部门列表(全部，不分页)
export function getSectorListsAll(query) {
    return request({
        url: '/joining/busin.Position/getSectorListsAll',
        method: 'post',
        params: query
    })
}
// 添加/修改 岗位
export function setJobs(query) {
    return request({
        url: '/joining/busin.Position/setJobsInfo',
        method: 'post',
        params: query
    })
}
// 岗位状态 启用/禁用
export function setJobsStatus(query) {
    return request({
        url: '/joining/busin.Position/setJobsStatus',
        method: 'post',
        params: query
    })
}
// 删除岗位
export function delJobs(query) {
    return request({
        url: '/joining/busin.Position/delJobsInfo',
        method: 'post',
        params: query
    })
}